import request from '@/utils/request'

// 查询dc3节点信息列表
export function listDc3point(query) {
  return request({
    url: '/pump/dc3point/list',
    method: 'get',
    params: query
  })
}

// 查询dc3节点信息详细
export function getDc3point(id) {
  return request({
    url: '/pump/dc3point/' + id,
    method: 'get'
  })
}

// 新增dc3节点信息
export function addDc3point(data) {
  return request({
    url: '/pump/dc3point',
    method: 'post',
    data: data
  })
}

// 修改dc3节点信息
export function updateDc3point(data) {
  return request({
    url: '/pump/dc3point',
    method: 'put',
    data: data
  })
}

// 删除dc3节点信息
export function delDc3point(id) {
  return request({
    url: '/pump/dc3point/' + id,
    method: 'delete'
  })
}

// 同步DC设备
export function syncDc3point(data) {
  return request({
    url: '/pump/dc3point/sync',
    method: 'post',
    data: data
  })
}